import {http} from "../config.js"


//修改登陆密码 POST /front/user/update/pwd

export const upDatePwd = (params) =>{
	return http.post('front/user/update/pwd',params)
}

//修改交易密码	POST /front/user/update/tradePwd

export const upDateTradePwd = (params) =>{
	return http.post('front/user/update/tradePwd',params)
}

// 发送发短信 POST /ajax/sendByPhone
export const sendPhoneCode = (params) =>{
	return http.post('ajax/sendByPhone',params)
}
// 发送发短信 POST /ajax/sendByUserId
export const sendUserCode = (params) =>{
	return http.post('ajax/sendByUserId',params)
}

//实名认证	POST /front/user/userAuth

export const userAuth = (params) => {
	return http.post("front/user/userAuth", params);
}

// 商户申请 /front/merchant/apply
export const merchantApply = (params) => {
	return http.post("front/merchant/apply", params,true);
}
// 查看商户当前状态/front/merchant/apply/info
export const merchantApplyStatus = (params) => {
	return http.post("front/merchant/apply/info", params);
}